<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">  
  <title>订单列表</title>
 </head>
 <body>
 <?php
  require_once('inc_flower.php');
  connect();
  $title = $_POST['ctf_title']; 
  $sql = "select * from flower where ctf_title like '%%{$title}%%'";


  //echo $sql.'<br/>';  

  $result = fetch_array($sql); 



 ?>

 <div class="container">

   <div class="row">

     <center><h1 class="text-center">详细信息</h1></center>

     <table class="table table-hover" align="center"> 

     <tr>

       <th>鲜花标题</th>   

       <th>鲜花产地</th>

       <th>鲜花图片</th>

       <th>鲜花简介</th>

       <th>操作</th>

     </tr>
     <?php
      foreach ($result as $row) {

       echo '<tr>';

       echo '<td>'.$row['ctf_title'].'</td>';

       echo '<td>'.$row['ctf_place'].'</td>';  

       echo '<td align="center"><img src='.$one['ctf_pic'].' width=60 height=80 alt="无法显示"></td>';;

       echo '<td>'.$row['ctf_intro'].'</td>'; 

       echo '<td>'.'<a href="flowerlist.php">返回</a>'.'</td>' ;

       echo '</tr>';

      }
     ?>

  </div>

 </div>

 </body>

</html>